package o;

import androidx.annotation.NonNull;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import java.util.WeakHashMap;

public final class yw implements ym {
    private final Set<zz<?>> ˊ = Collections.newSetFromMap(new WeakHashMap());

    public void ˋ(@NonNull zz<?> zzVar) {
        this.ˊ.add(zzVar);
    }

    public void ˎ(@NonNull zz<?> zzVar) {
        this.ˊ.remove(zzVar);
    }

    public void onStart() {
        for (zz onStart : aau.ˏ(this.ˊ)) {
            onStart.onStart();
        }
    }

    public void onStop() {
        for (zz onStop : aau.ˏ(this.ˊ)) {
            onStop.onStop();
        }
    }

    public void onDestroy() {
        for (zz onDestroy : aau.ˏ(this.ˊ)) {
            onDestroy.onDestroy();
        }
    }

    @NonNull
    public List<zz<?>> ˎ() {
        return aau.ˏ(this.ˊ);
    }

    public void ˋ() {
        this.ˊ.clear();
    }
}
